package cn.lisens.demo.entity;

import com.fasterxml.jackson.annotation.JsonView;

import lombok.Data;

public class User {
	public interface WithoutPasswordView {};
    public interface WithPasswordView extends WithoutPasswordView {};
    
	private String userCode;
	private String password;
	
	public User() {
    }

    public User(String userCode, String password) {
        this.userCode = userCode;
        this.password = password;
    }


    @JsonView(WithoutPasswordView.class)
	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	 @JsonView(WithPasswordView.class)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
}
